package cn.wxq.daily.empdailymgforserve.mapper;
import cn.wxq.daily.empdailymgforserve.domain.Vacation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VacationDao {
    /**
     * 条件查询
     * @return
     */
    public List<Vacation> findByPage(Vacation vacation);


    /**
     * 新增
     * @return
     */
    public int insertVacation(Vacation vacation);

    /**
     * 修改
     * @return
     */
    public int updateVacation(Vacation vacation);

    /**
     * 删除
     * @param leaveId
     * @return
     */
    public int deleteById(Integer leaveId);

    /* */
    /**
     * 获取详情
     * @param leaveId
     * @return
     */
    public Vacation selectVacationById(Integer leaveId);

    List<Vacation> findALL();

    List<Vacation> selectVacationByUserName(String nickName);
}
